SET NOCOUNT ON
GO

CREATE TABLE [dbo].[modulo] (
  [id_modulo] int IDENTITY(0, 1) NOT NULL,
  [dsc_modulo] nvarchar(50) COLLATE Latin1_General_CI_AS NULL,
  [dsc_pagina] nvarchar(100) COLLATE Latin1_General_CI_AS NULL,
  [num_nivel] int NULL
)
ON [PRIMARY]
GO

ALTER TABLE [dbo].[modulo]
ADD CONSTRAINT [modulo_pkey]  
PRIMARY KEY CLUSTERED ([id_modulo])
WITH (
  PAD_INDEX = OFF,
  IGNORE_DUP_KEY = OFF,
  STATISTICS_NORECOMPUTE = OFF,
  ALLOW_ROW_LOCKS = OFF,
  ALLOW_PAGE_LOCKS = OFF)
ON [PRIMARY]
GO

SET IDENTITY_INSERT [dbo].[modulo] ON
GO

INSERT INTO [dbo].[modulo] ([id_modulo], [dsc_modulo], [dsc_pagina], [num_nivel])
SELECT [id_modulo], [dsc_modulo], [dsc_pagina], [num_nivel] FROM [dbo].[modulo_ori]
GO

SET IDENTITY_INSERT [dbo].[modulo] OFF
GO